<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
<body>
	<ui:composition>
		<br />
			
		<div class="logo">
			<c:if test="#{loginBean.loginUser.accType.personel}">
				<h:link outcome="/pages/workerStart">
					<h:graphicImage value="/resources/img/logo.png" />
				</h:link>
			</c:if>
			<c:if test="#{!loginBean.loginUser.accType.personel}">
				<h:link outcome="/pages/patientStart">
					<h:graphicImage value="/resources/img/logo.png" />
				</h:link>
			</c:if>
		</div>
		<div class="contact">
			Infolinia<br /> <span class="phoneNumber">42 670 98 08</span>

		</div>
		<h:form>
			<div class="login">
				<table>
					<tr>
						<td>Zalogowany jako:</td>
					</tr>
					<tr>
						<td><h:outputText value="#{loginBean.loginUser.login} (#{loginBean.loginUser.accType.label})" /></td>
					</tr>
					<tr>
						<td><c:if test="#{loginBean.loginAsOther}">
								<h:outputText value="(#{loginBean.loginPersonel.login} (#{loginBean.loginPersonel.accType.label}))" />
							</c:if></td>
					</tr>
					<tr>
						<td><c:if test="#{!loginBean.loginAsOther}">
								<p:commandButton action="#{loginBean.logout}" value="wyloguj" />
							</c:if> <c:if test="#{loginBean.loginAsOther}">
								<p:commandButton action="#{loginBean.logoutAsUser}"
									value="wyloguj" update="@all" />
							</c:if></td>
					</tr>
				</table>
			</div>
		</h:form>
	</ui:composition>
</body>
</html>